const orderModel = require('../models/order.model.js');

module.exports = {
    /**
     * 添加预购记录
     */
    async addOrder(formData) {
        let result = await orderModel.addOrder(formData);
        return result;
    },
    /**
     * 获取预购记录
     * 
     */
    async getOrder(formData) {
        let result = await orderModel.getOrder(formData);
        return result;
    },
    /**
     * 修改预购记录
     */
    async modifyOrder(formData) {
        let result = await orderModel.modifyOrder(formData);
        return result;
    },
    /**
     * 获取预购人员
     * 
     */
    async getOrderPeople(formData) {
        let result = await orderModel.getOrderPeople(formData);
        return result;
    },
    /**
     * 获取交易对象
     * 
     */
    async getTradePeople(formData) {
        let result = await orderModel.getTradePeople(formData);
        return result;
    },
    /**
     * 获取在售记录
     */
    async getForSale(formData) {
        let result = await orderModel.getForSale(formData);
        return result;
    }
}